package com.ruoyi.project.system.domain;


import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;

@Data
public class SiyuRecharge extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 充值ID
     */
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 充值类型
     */
    private String rechargeType;

    /**
     * 充值前余额
     */
    private BigDecimal beforeBalance;

    /**
     * 充值额
     */
    private BigDecimal recharge;

    /**
     * 充值后余额
     */
    private BigDecimal afterBalance;

    /**
     * 支付单号
     */

    private String outTradeNo;

    /**
     * 启用
     */
    private String status;



    public SiyuRecharge() {
    }

    public SiyuRecharge(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public SiyuRecharge(Integer userId, BigDecimal beforeBalance, BigDecimal recharge, BigDecimal afterBalance) {
        this.userId = userId;
        this.beforeBalance = beforeBalance;
        this.recharge = recharge;
        this.afterBalance = afterBalance;
        this.rechargeType = "人工充值";
        this.status = "1";
    }

}
